home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PRIVATE.ZIP
/
_CLRSCR.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
867b
|
33 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#ifndef NDEBUG
char *rcsid__clrscr = "$Header: c:/curses/private/RCS/_clrscr.c%v 2.0 1992/11/15 03:24:42 MH Rel $";
#endif
/*man-start*********************************************************************
PDC_clr_scrn() - Clears the physical screen and homes the cursor.
PDCurses Description:
This is an internal routine called by the doupdate() routines.
PDCurses Return Value:
This routine always returns OK.
Portability:
PDCurses int PDC_clr_scrn( WINDOW* win );
**man-end**********************************************************************/
int PDC_clr_scrn(WINDOW *win)
{
chtype attrs = win->_attrs;
PDC_scroll(0, 0, LINES - 1, COLS - 1, 0, attrs);
PDC_gotoxy(0, 0);
return( OK );
}